package 链表1;

public class TestLinkedList {
    public static void main(String[] args) {
        SinglyLinkedList singlyLinkedList=new SinglyLinkedList();
        singlyLinkedList.create();
        singlyLinkedList.display();
        System.out.println(singlyLinkedList.size());

        singlyLinkedList.addFirst(12);
        singlyLinkedList.display();
        System.out.println(singlyLinkedList.size());

        singlyLinkedList.addLast(12);
        singlyLinkedList.display();
        System.out.println(singlyLinkedList.size());

        singlyLinkedList.addIndex(6,0);
        singlyLinkedList.display();
        System.out.println(singlyLinkedList.size());

        singlyLinkedList.remove(0);
        singlyLinkedList.display();
        System.out.println(singlyLinkedList.size());

        singlyLinkedList.removeAllKey(12);
        singlyLinkedList.display();
        System.out.println(singlyLinkedList.size());

        singlyLinkedList.clear();
        singlyLinkedList.display();
        System.out.println(singlyLinkedList.size());

    }
}
